package homework.homework01;

import java.util.List;

public class Test {
    public static void main(String[] args){
        String sql = "select sid as id, sname as name, gender, sphoneNo as phoneNum, photoPath as photoPath, sTime as time from t_student";

        String sql2 = "select cid as id, cname as name, openTime, teacher as teacherName from t_class;";

//        List<StudentBean> s = DBUtil.getDatas(sql, StudentBean.class);
////        System.out.println(StudentBean.class.getDeclaredFields().length);
//
//        for (StudentBean studentBean : s) {
//            System.out.println(studentBean);
//        }
        List<ClassBean> list = DBUtil.getDatas(sql2, ClassBean.class);
        for (ClassBean classBean : list) {
            System.out.println(classBean);
        }
    }
}
